package com.cat.simulation;

/**
*   @description https://leetcode.cn/problems/alice-and-bob-playing-flower-game/?envType=daily-question&envId=2025-08-29
*   @author 曲大人的喵
*   @create 2025/8/29 11:09
*   @since JDK17
*/

public class Solution04 {
    public long flowerGame(int n, int m) {
        long ans = 0, o1 = (n + 1) / 2, o2 = (m + 1) / 2, e1 = n / 2, e2 = m / 2;
        return o1 * e2 + o2 * e1;
    }
}
